home *** CD-ROM | disk | FTP | other *** search
- ;-----------------------------------------------------
- ;
- ; DEPACK-ROUTINE
- ;
- ; ES:SI = Pointer to adress of the packed datas
- ; FS:DI = Pointer to adress to depack the datas (now 64000 bytes to depack)
- ;
-
- unpack_it: nop
-
- up4: mov al,[es:si]
- and al,10000000b
- cmp al,128
- jne up1
- mov cl,[es:si]
- mov al,[es:si+1]
- sub cl,128
- up2: mov [fs:di],al
- inc di
- cmp di,32*2000
- je up3
- dec cl
- jnz up2
- add si,02h
- jmp up4
-
- up1: mov al,[es:si]
- mov [fs:di],al
- inc di
- cmp di,32*2000
- je up3
- inc si
- jmp up4
-
- up3: ret
-
-
- ;----------------------------------------------------
-